package com.gxan.renshiservice;

import com.gxan.pojo.Archives;

import java.sql.SQLException;
import java.util.List;

public interface ServiceArchives {
    /**
     * 查询所有
     */
    List<Archives> findAllArchives(Integer page, Integer limit) throws SQLException;
    /**
     *查询数据条数
     */
    Integer countArchives() throws SQLException;
    /**
     *添加数据
     */
    Integer addArchives(Archives archives) throws SQLException;
    /**
     *搜索数据
     */
    List<Archives> searchArchives(String archives_id, String audit_status, String status, String s_date, String t_date, Integer page, Integer limit) throws SQLException;
    /**
     *根据条件查询数据
     */
    Integer countArchivesByCoundition(String archives_id, String audit_status, String status, String s_date, String t_date) throws SQLException;
    /**
     *删除数据
     */
    Integer delArchives(Integer archives_id) throws SQLException;
    /**
     *修改数据
     */
    Integer updateArchives(Archives archives) throws SQLException;
}
